package com.addplus.townmall.server.api.model.town.expand;

import com.addplus.townmall.server.api.model.town.ShopProduct;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 方法描述：solr更新查询普通商品类型
 *
 * @param
 * @author zhangjiehang
 * @return
 * @date 2018/11/28 8:58 PM
 * @throws Exception
 */
@Data
@Accessors(chain = true)
public class SolrModelExpand implements Serializable {
    private static final long serialVersionUID = -4624388219777174972L;

    @TableId(value = "id")
    private Integer id;

    @TableField("gmt_create")
    private Date gmtCreate;

    private Integer isDeleted;

    private Integer isDelete;

    // 商品、拼团商品字段
    private String shopName;
    private String shopDescribe;
    private String shopSealImg;
    private String shopSealImgPc;

    // 礼品卡字段
    private String giftCardName;
    private String giftDescribe;
    private String giftCardSealImg;
    private String giftCardSealImgPc;

    // 商品、拼团商品、礼品卡共用字段
    private Integer storeId;
    private Integer shopCategoryId;
    private String shopTag;
    private BigDecimal salePrice;
    private BigDecimal linePrice;
    private Integer onlineStatus;
    private Integer collectVirtualCount;
    private Integer collectCount;
    private Integer visitCount;
    private Integer vistitVirtualCount;
    private Integer saleCount;
    private Integer saleVirtualCount;
    private String shopProductDescribe;
    private Integer shopGoods;
    private Integer shopCommentCount;
    private BigDecimal shopProductOverallRate;
    private BigDecimal shopProductRate;
    private BigDecimal shopProductServiceRate;
    private BigDecimal shopProductLogisticsRate;
    private Integer totalComment;
    private Integer goodComment;
    private Integer middleComment;
    private Integer badComment;
    private Integer goodRate;

    // 故事文章字段
    private String title;
    private String context;
    private String brief;
    private String imgThumb;
    private String img;
    private Integer storyCategoryId;
    private Integer storyLabelId;
    private Integer storyAuthorId;
    private String shopIdAll;
    private Integer readCount;
    private Integer readCountTrue;
    private Integer likeCount;
    private Integer likeCountTrue;
    private Integer collection;
    private Integer collectionTrue;
    private Integer comment;
    private Integer commentTrue;
    private Integer share;
    private Integer shareTrue;
    private Integer online;

    // 商店字段
    private String storeName;
    private String storeIntroduction;
    private Integer shopCount;
    private BigDecimal overallRate;
    private BigDecimal shopRate;
    private BigDecimal serviceRate;
    private BigDecimal logisticsRate;

}
